package com.cdtye.itps.cms.dao.defect.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.cdtye.itps.cms.dao.enums.DelFlagEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 *
 * @author wzw
 * @date 2021-12-21
 */
@ApiModel("缺陷原因")
@Data
@Accessors(chain = true)
@TableName("JCW_PROBLEM_DEFECT_REASON")
public class JcwProblemDefectReason {
    @ApiModelProperty("ID")
    @TableId(
            type = IdType.UUID
    )
    private String id;

    @ApiModelProperty(value = "原因名称")
    private String reasonName;

    @ApiModelProperty(value = "原因编号")
    private String reasonCode;

    @ApiModelProperty(value = "cascade编码")
    private String cascadeCode;

    @ApiModelProperty(value = "父类id")
    private String parentId;

    @ApiModelProperty(value = "id路径")
    private String idPath;

    @ApiModelProperty(value = "名称路径")
    private String namePath;

    @ApiModelProperty(value = "排序号")
    private String sortNum;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty("删除标志，Y=是，N=否")
    private DelFlagEnum delFlag;

    @ApiModelProperty("创建时间")
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createDatetime;
    @ApiModelProperty("创建人")
    private String createBy;
    @ApiModelProperty("修改时间")
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateDatetime;
    @ApiModelProperty("修改人")
    private String updateBy;
}
